package com.hckjsec.cloud.domain;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hckjsec.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 机构简介主对象 applets_public_mechanism
 * 
 * @author cyt
 * @date 2021-09-03
 */
public class AppletsPublicMechanism implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long mechanismId;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** 机构图片 */
    @Excel(name = "机构图片")
    private String mechanismImg;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 操作人 */
    @Excel(name = "操作人")
    private Long operator;

    /** 提交时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提交时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operatortime;

    public AppletsPublicMechanism() {
    }

    public AppletsPublicMechanism(Long deptId) {
        this.deptId = deptId;
    }

    public void setMechanismId(Long mechanismId)
    {
        this.mechanismId = mechanismId;
    }

    public Long getMechanismId() 
    {
        return mechanismId;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setMechanismImg(String mechanismImg) 
    {
        this.mechanismImg = mechanismImg;
    }

    public String getMechanismImg() 
    {
        return mechanismImg;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setOperator(Long operator) 
    {
        this.operator = operator;
    }

    public Long getOperator() 
    {
        return operator;
    }
    public void setOperatortime(Date operatortime) 
    {
        this.operatortime = operatortime;
    }

    public Date getOperatortime() 
    {
        return operatortime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("mechanismId", getMechanismId())
            .append("deptId", getDeptId())
            .append("mechanismImg", getMechanismImg())
            .append("content", getContent())
            .append("operator", getOperator())
            .append("operatortime", getOperatortime())
            .toString();
    }
}
